<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- android.qdoc -->
  <title>Publishing to Google Play | Qt 5.14</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="index.html">Qt 5.14</a></td><td >Publishing to Google Play</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.14.2 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Publishing to Google Play</h1>
<span class="subtitle"></span>
<!-- $$$android-publishing-to-googleplay.html-description -->
<div class="descr"> <a name="details"></a>
<p><a href="android.html">Qt for Android</a> provides a complete solution to develop, build, and package your applications for Android. Most of these tasks, especially packaging and deployment are handled by Qt Creator providing rich developer experience.</p>
<p>Every time you run the application using Qt Creator, an Android Application Package (APK) is created and deployed onto the target (device or emulator) you choose. With some minor changes to how the <i>.apk</i> is created, you can publish your application on Google Play and monetize. The following step-by-step instructions guide you to create an <i>.apk</i> that can go live on Google Play:</p>
<ol class="1" type="1"><li>Open your application project using Qt Creator v3.0 or later and change its <b>Build</b> settings to build release version.</li>
<li>Select <b>Create Templates</b> under <b>Build</b> settings to create the template files such as <i>AndroidManifest.xml</i> and other resources.<p><b>Note: </b>You can edit the <i>AndroidManifest.xml</i> in <b>General</b> or <b>XML Source</b> mode.</p></li>
<li>Check for the following in <i>AndroidManifest.xml</i>:<ul>
<li><b>Minimum required SDK</b> is set to API 9 or later.<p><b>Note: </b>Qt Quick Controls with native <a href="../qtquickcontrols1/qtquickcontrols-platformnotes.html#android-style">Android style</a> require API 11 (Android v3.0) or later.</p></li>
<li>Add <b>Application name</b> and <b>Application icon</b>.</li>
<li><b>Permissions</b> list has all the required permissions.</li>
<li><b>Features</b> list has the software or hardware features that your application depends on. For example, NFC.</li>
</ul>
<p><b>Note: </b>Qt adds the default permissions and features based on the module dependencies of your application. If you do not want these default permissions and features, remove the <code>&lt;!-- %%INSERT_PERMISSIONS --&gt;</code> and <code>&lt;!-- %%INSERT_FEATURES --&gt;</code> comments from <i>AndroidManifest.xml</i>. For information on the manifest XML format, see <a href="http://developer.android.com/guide/topics/manifest/manifest-intro.html">Android: App Manifest</a>.</p></li>
<li>Set up a <b>keystore</b> to sign the <i>.apk</i>. You can create a new keystore if you do not have one. For more details, see <a href="http://doc.qt.io/qtcreator/creator-deploying-android.html#specifying-settings-for-packages">QtCreator: Specifying Settings for Packages</a>.</li>
<li>Select <b>Open package location after build</b> and run your application to build the <i>.apk</i>. Qt Creator builds the <i>.apk</i> and opens the folder containing the <i>.apk</i>.</li>
<li>Log in to the <a href="https://play.google.com/apps/publish">Google Play Developer Console</a> and upload the <i>.apk</i> file, few screen captures of the application, and a description.</li>
</ol>
<p>Now your application is available to other Android device users via Google Play. You can also choose to publish the application to a smaller group, so that you can test and improve the application before publishing it to a larger audience.</p>
<p>See <a href="deployment-android.html">Deploying an Application on Android</a> for more information about how the packaging is done and how you can influence it.</p>
</div>
<!-- @@@android-publishing-to-googleplay.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
